//
//  DPDetailViewController.h
//  TimeManager
//
//  Created by 刘凯敏 on 01/12/2016.
//  Copyright © 2016 刘凯敏. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AddDPDetailViewController,DPDetailModel;

//定义一个协议
@protocol AddDPDetailControllerDelegate <NSObject>
@optional
- (void) addContact:(AddDPDetailViewController *)addVc didiAddContact:(DPDetailModel *)contact;
@end

@interface AddDPDetailViewController : UIViewController
//返回上一界面
- (IBAction)backAction:(id)sender;
@property (strong, nonatomic) IBOutlet UITextField *nameField;
@property (strong, nonatomic) IBOutlet UITextField *placeField;
//编辑完成
- (IBAction)editEnd:(id)sender;
@property (strong, nonatomic) IBOutlet UIButton *addBtn;
- (IBAction)addAction;
//触摸背景
- (IBAction)backTap:(id)sender;
//声明一个协议
@property (weak , nonatomic) id<AddDPDetailControllerDelegate> delegate;
@end
